package com.example.exampleproject.base.exception;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.Map;

/**
 * 业务错误（根据约定）
 *
 */
public class BizError {
    private int httpCode;
    private int tmpErrorCode;

    @Expose
    @SerializedName("attribute")
    private String attribute;

    @Expose
    @SerializedName("code")
    private int  errorCode;

    @Expose
    @SerializedName("extraInfo")
    private Map extraInfo;

    @Expose
    @SerializedName("message")
    private String message;

    public String getAttribute() {
        return attribute;
    }


    public Map getExtraInfo() {
        return extraInfo;
    }

    public String getMessage() {
        return message;
    }

    public void setHttpCode(int httpCode) {
        this.httpCode = httpCode;
    }

    public void setTmpErrorCode(int tmpErrorCode) {
        this.tmpErrorCode = tmpErrorCode;
    }

    public int getTmpErrorCode() {
        return this.tmpErrorCode;
    }

    public int getHttpCode() {
        return httpCode;
    }

    public static class Severity {

    }
}

